package com.postgresql.geoserver;

import it.geosolutions.geoserver.rest.GeoServerRESTManager;

import java.net.URL;

/**
 * @author: 顾志杰
 */
public class GeoServerRESTManagerEx extends GeoServerRESTManager {

    private  GeoServerRESTPublisherEx publisherEx;
    /**
     * Default constructor.
     * <p>
     * Indicates connection parameters to remote GeoServer instance.
     *
     * @param restURL  GeoServer REST API endpoint
     * @param username GeoServer REST API authorized username
     * @param password GeoServer REST API password for the former username
     */
    public GeoServerRESTManagerEx(URL restURL, String username, String password) throws IllegalArgumentException {
        super(restURL, username, password);
        publisherEx = new GeoServerRESTPublisherEx(restURL.toString(),username,password);
    }

    public GeoServerRESTPublisherEx getPublisherEx() {
        return publisherEx;
    }
}
